package net.realsee.service.wcs.device;

import com.baomidou.mybatisplus.extension.service.IService;

import net.realsee.domain.wcs.device.WcsVehicleEqpt;
import net.realsee.domain.wcs.device.bo.BindingEquipmentVehicleBo;
import net.realsee.domain.wcs.device.bo.BindingVehicleEquipmentBo;
import net.realsee.domain.wcs.device.bo.WcsVehicleEqptBo;
import net.realsee.domain.wcs.device.vo.EquipmentBindVehicleVo;
import net.realsee.domain.wcs.device.vo.VehicleBindEquipmentVo;
import net.realsee.domain.wcs.device.vo.WcsVehicleEqptVo;
import net.realsee.framework.core.domain.PageQuery;
import net.realsee.framework.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 车辆设备关系Service接口
 *
 * @author realsee
 * @date 2023-08-11
 */
public interface IWcsVehicleEqptService extends IService<WcsVehicleEqpt> {

    /**
     * 查询车辆设备关系
     */
    WcsVehicleEqptVo selectVoById(Long id);

    /**
     * 查询车辆设备关系列表
     */
    TableDataInfo<WcsVehicleEqptVo> selectVoPage(WcsVehicleEqptBo bo, PageQuery pageQuery);

    /**
     * 查询车辆设备关系列表
     */
    List<WcsVehicleEqptVo> selectVoList(WcsVehicleEqptBo bo);

    /**
     * 新增车辆设备关系
     */
    Boolean insertByBo(WcsVehicleEqptBo bo);

    /**
     * 批量新增
     *
     * @param list
     * @return
     */
    Boolean insertByBatch(List<WcsVehicleEqpt> list);

    /**
     * 修改车辆设备关系
     */
    Boolean updateByBo(WcsVehicleEqptBo bo);

    /**
     * 校验并批量删除车辆设备关系信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids);

    /**
     * 获取设备信息
     *
     * @param id
     * @return
     */
    EquipmentBindVehicleVo getEquipmentInfo(Long id);

    /**
     * 添加车辆绑定设备关系
     *
     * @param bo
     * @return
     */
    void insertEqptVehicle(BindingEquipmentVehicleBo bo);

    /**
     * 获取车辆信息
     *
     * @param id
     * @return
     */
    VehicleBindEquipmentVo getVehicleInfo(Long id);

    /**
     * 添加车辆绑定设备关系
     *
     * @param bo
     * @return
     */
    void insertVehicleEqpt(BindingVehicleEquipmentBo bo);
}
